package com.xbs.controller.backstage;
import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 员工管理
 */
import com.xbs.controller.base.BaseServlet;

import com.xbs.entity.EmployeeEntity;
import com.xbs.service.hitchhiking.EmpAdminService;

@WebServlet("/backstage/employee")
public class EmployeeManagerServlet extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		EmpAdminService emp = new EmpAdminService();
		
		/**
		 * 1.根据在职查询所有员工信息
		 */
		List<EmployeeEntity> emplst = emp.getEmployee();
		req.setAttribute("emplst", emplst);
		
		forward("admin/basicSetting/llp_employee");
	
		
	}
}
